<div style="margin-top: 20px">
  <app-search (outer)="run2($event)"></app-search>
  <button nz-button nzType="primary" style="float: right; margin-right: 1%"><i nz-icon nzType="search"></i>导出</button>
  <div style="clear: both"></div>


  <nz-table
    #rowSelectionTable
    nzShowPagination
    nzShowSizeChanger
    [nzData]="sendRosterTableData"
    style="margin-top: 2%"
  >
    <thead>
    <tr>
      <th>序号</th>
      <th>姓名</th>
      <th>部门</th>
      <th>岗位</th>
      <th>工号</th>
      <th>年龄</th>
      <th>性别</th>
      <th>手机号</th>
      <th>员工状态</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of rowSelectionTable.data">
      <td>{{ data.skay }}</td>
      <td>{{ data.name }}</td>
      <td>{{ data.department }}</td>
      <td>{{ data.posting }}</td>
      <td>{{ data.jobnumber }}</td>
      <td>{{ data.age }}岁</td>
      <td>{{ data.sex }}</td>
      <td>{{ data.phone }}</td>
      <td>{{ data.state }}</td>
      <td class="rosterUpdate">
        <button nz-button nzType="primary" class="shop-button" style="background-color: #fff; color: #1890ff; border: none" (click)="edit(data)">修改</button>
        <button *ngIf="data.state=='在职'||data.state=='试用'||data.state=='正式'||data.state=='待入职'||data.state=='转正'" nz-button nzType="primary" class="shop-button" style="background-color: #fff; margin-left: 10px;color: #1890ff; border: none" (click)="go(data)">添加待离职</button>
      </td>
    </tr>
    </tbody>
  </nz-table>
</div>
